import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

// 采购入库接口start
export function findPurchaseStockInListByPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/findStockInListByPage',
        method: 'post',
        params
    })
} 
export function findPurchaseStockInOrderAndDetailList(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/findStockInOrderAndDetailList',
        method: 'post',
        params
    })
}
export function getStockIningQuantity(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/getStockIningQuantity',
        method: 'post',
        params
    })
}
export function deletePurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/deleteStockInOrder',
        method: 'post',
        params
    })
}
export function authPurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/authStockInOrder',
        method: 'post',
        params
    })
}
export function submitPurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/submitStockInOrder',
        method: 'post',
        params
    })
}
export function savePurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/saveStockInOrder',
        method: 'post',
        data: params
    })
}
export function saveAndSubmitPurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/saveAndSubmitStockInOrder',
        method: 'post',
        data: params
    })
}
export function confirmStockInPurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/confirmStockIn',
        method: 'post',
        params
    })
}
export function confirmStockInAllPurchaseStockInOrder(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/confirmStockInAll',
        method: 'post',
        params
    })
}
export function findPurchaseStockInDetailListByPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/purchaseStockIn/findStockInDetailListByPage',
        method: 'post',
        params
    })
}
// 采购入库接口end

// 退货入库接口start
export function findSalesReturnStockInListByPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/otherStockIn/findSalesReturnStockInListByPage',
        method: 'post',
        params
    })
} 
// 退货入库接口end

// 调拨入库接口start
export function findAllocationStockInListByPage(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/stockIn/otherStockIn/findAllocationStockInListByPage',
        method: 'post',
        params
    })
} 
// 调拨入库接口end

